//
//  UILabel+init.m
//  UI22_项目框架
//
//  Created by dllo on 15/7/3.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "UILabel+init.h"

@implementation UILabel (init)
+ (instancetype)labelWithFrame:(CGRect)frame text:(NSString *)text background:(UIColor *)bgcolor textColor:(UIColor *)tColor alignment:(NSTextAlignment)textAlignment
{
    UILabel *label = [[[UILabel alloc] initWithFrame:frame] autorelease];
    label.text = text;
    if (bgcolor) {
        label.backgroundColor = bgcolor;
    }
    if (tColor) {
        label.textColor = tColor;
    }
    label.textAlignment = textAlignment;
    return label;
}
@end
